<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
 
    <body>
        <ui:composition template="./../noLogin/myTemplate2.xhtml">
            <ui:define name="content">
                <div class ="personInfo">
                <h1><h:outputText value="#{msgs.personalInfomation}"/></h1>
                <h:messages  style="color: red" id="latestMessage"/>
                <h:form>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{msgs.password}"/>
                        <h:inputText value="#{checkLogin.user.password}" required="true"/>
                        <h:outputLabel value="#{msgs.email}"/>
                        <h:inputText value="#{checkLogin.user.email}" required="true"/>
                        <h:outputLabel value="#{msgs.phone}"/>
                        <h:inputText value="#{checkLogin.user.phone}"  required="true" >
                            <f:validateRegex for="telephone" pattern="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)" />
                        </h:inputText>
                        <h:outputLabel/>
                        <h:commandButton value="#{msgs.save}" action="#{checkLogin.submit}" class="submit"/>
                    </h:panelGrid>
                </h:form>
                </div>
            </ui:define>
        </ui:composition>

    </body>
</html>
